<template>
  <div id="logo">
    <section>
      <div id="login">
        <h1>BK管理系统</h1>
        <el-form status-icon label-width="100px" class="demo-ruleForm">
          <el-form-item label="用户名" prop="pass">
            <el-input type="text" v-model="user" autocomplete="off"></el-input>
          </el-form-item>
          <el-form-item label="密码" prop="checkPass">
            <el-input
              type="password"
              v-model="pass"
              autocomplete="off"
            ></el-input>
          </el-form-item>
          <el-form-item label="记住我">
            <el-switch
              v-model="value"
              active-color="#13ce66"
              inactive-color="#ff4949"
            >
            </el-switch>
          </el-form-item>
          <el-form-item>
            <el-button type="primary">登录</el-button>
            <el-button>清空</el-button>
          </el-form-item>
        </el-form>
      </div>
    </section>
  </div>
</template>

<script>
export default {
  data() {
    return {
      user: "",
      pass: "",
      value: false,
    };
  },
};
</script>

<style scoped>
section {
  width: 100%;
  height: 100%;
  background: url("/bac.jpg") no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#login h1 {
  padding: 10px;
}
#login {
  width: 400px;
  padding: 20px;
  height: 280px;
  background-color: #ffffff;
}
</style>